package com.grocery.service;

import com.grocery.bean.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;


public interface IOrderService {
    int addOrder(List<Integer> ids, List<Integer> numbers, Integer addressid, Integer userid);

    String payment(Integer id);

    int paymentSuccess(HashMap map);

    Order getOrderByID(Integer id);

    int cancelOrder();

    List<Order> getAllOrder();

    int getCount(String text);
    int editState(Integer code,Integer state);
    List<Order> getOrderByuserID(Integer userid);
}
